/*
 * @Author: chen haoxuan
 * @Date: 2021-06-06 22:07:51
 * @LastEditTime: 2021-06-06 22:26:21
 */
// 多重继承派生类的构造函数
#include<iostream>
#include<string>
using namespace std;
class Teacher
{
  public:
    Teacher(string nam,int a,string t)
    {
      name=nam;
      age=a;
      title=t;
    }
    void display()
    {
      cout<<"name: "<<name<<endl;
      cout<<"age: "<<age<<endl;
      cout<<"title: "<<title<<endl;
    }
  protected:
    string name;
    int age;
    string title;
};
class Student
{
  public:
    Student(char nam[],char s,float s)
    {
      strcpy(name1,nam);
      sex=s;
      score=sco;
    }
    void display1()
    {
      cout<<"name: "<<name1<<endl;
      cout<<"char: "<<sex<<endl;
      cout<<"score: "<<score<<endl;
    }
  protected:
    string name1;
    char sex;
    float score;
};
class Graduate:public Teacher,public Student
{
  public:
    Graduate(string nam,int a,string t,string nam1,char s,float sco,float w):
    Teacher(nam,s,t),Student(nam1,s,sco)
    {
      wage=w;
    }
    void show()
    {
      cout<<"name: "<<name<<endl;
      cout<<"age: "<<age<<endl;
      cout<<"title: "<<title<<endl;
      cout<<"score:"<<score<<endl;
      cout<<"title: "<<title<<endl;
      cout<<"wages: "<<wage<<endl;
    }
  private:
    float wage;
};
int main()
{
  Graduate grad1("wang_li",24,)
}
